package com.adapter.demo3.impl;

import java.util.*;

@SuppressWarnings("rawtypes")
public class IteratorEnumeration implements Enumeration {
	Iterator iterator;

	public IteratorEnumeration(Iterator iterator) {
		this.iterator = iterator;
	}

	public boolean hasMoreElements() {
		return iterator.hasNext();
	}

	public Object nextElement() {
		return iterator.next();
	}

}
